﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbpDemo.Entity
{
    [Table("Score")]
    public class Score : Entity<int>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        public override int Id { get; set; }
        /// <summary>
        /// student表的id
        /// </summary>
        [Required]

        public int StudentId { get; set; }
        /// <summary>
        /// course表的id
        /// </summary>
        [Required]
        public int CourseId { get; set; }
        /// <summary>
        /// 成绩分数
        /// </summary>
        [Required]
        public int Grade { get; set; }
        /// <summary>
        /// 构造函数
        /// </summary>
        public Score()
        {

        }

    }
}
